package com.cskaoyan.controller.user;

import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.service.user.UserFootprintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author jzp
 * @since 2022/11/20 17:35
 */
@RestController
@RequestMapping("admin/footprint/")
public class UserFootprintController {
    @Autowired
    UserFootprintService userFootprintService;

    @RequestMapping("list")
    public BaseRespVo list(BasePageInfo info, String userId, String goodsId) {
        CommonData commonData = userFootprintService.list(info , userId, goodsId);
        return BaseRespVo.succeed(commonData);
    }

}
